package com.runda.partypolicy.utils;

import android.content.Context;
import android.widget.Toast;

/**
 * author:  RD_CY
 * date:    2018/9/4
 * version: v1.0
 * description: Toast工具
 */
public class ToastUtils {


    public static void showShort(Context context, String text) {
        Toast mToast = Toast.makeText(context, null, Toast.LENGTH_SHORT);
        mToast.setText(text);
        mToast.show();
    }

    public static void showShort(Context context, int textRes) {
        Toast mToast = Toast.makeText(context, null, Toast.LENGTH_SHORT);
        mToast.setText(context.getString(textRes));
        mToast.show();
    }
}
